package com.qys.livesMall.shop.controller.app;

import com.qys.livesMall.common.result.R;
import com.qys.livesMall.shop.modal.vo.ShopBalanceVO;
import com.qys.livesMall.shop.service.H2ShopBalanceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * app-店铺余额
 *
 * @author
 * @since 2023-06-06
 */
@RestController
@RequestMapping("/app/shop/balance")
public class AppH2ShopBalanceController {

    @Autowired
    private H2ShopBalanceService shopBalanceService;

    /**
     * 获取余额
     * @return
     */
    @GetMapping
    public R<ShopBalanceVO> get(){
        return R.ok(shopBalanceService.get());
    }
}

